package com.hl.learndagger;

import com.hl.learndagger.di.componet.DaggerDemoMyQualifierComponent;
import com.hl.learndagger.di.componet.DemoMyScopeComponent;
import com.hl.learndagger.di.module.DemoQualifierModule;
import com.hl.learndagger.di.qualifier.MyQualifier;

import javax.inject.Inject;


public class TestDagger3 {

    @Inject
    @MyQualifier("cp")
    public VIPUser user1;

    @Inject
    @MyQualifier("dp")
    public VIPUser user2;

    public TestDagger3()
    {
        DaggerDemoMyQualifierComponent.builder()
                .demoQualifierModule(new DemoQualifierModule("custom vip number 123456"))
                .build()
                .inject(this);
    }
}
